package homework43;

@FunctionalInterface
interface MyFunctionalInterface {
    void method();
}
public class FunctionalInterfaceDemo {
    public static void main(String[] args) {
        MyFunctionalInterface mfi = () -> {
            System.out.println("Lambda表达式实现函数式接口");
        };
        mfi.method();
    }
}
